import { axios } from '@/utils/request'

export function checkFileChunk(parameter) {
  return axios({
    url: '/file/upload/chunk/check',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data: parameter,
    timeout: 600000
  })
}

export function doUpload(parameter) {
  return axios({
    url: '/file/upload',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data: parameter,
    timeout: 600000
  })
}
